package com.zsrt.java.day20161229.cg.homework.game.user.service;

import com.zsrt.java.day20161229.cg.homework.game.user.entity.Userentity;

public class UserService {
	public boolean login(Userentity user){
		boolean flag ="player".equals(user.getName())&&"123456".equals(user.getPassword())?true:false;
		if(flag){
			System.out.println("登陆成功");
			return flag = true;
		}else{
			System.out.println("登陆失败，账号或密码不匹配");
		}
		return flag = false;
	}
//	UserService jx = new UserService();
	
}
